package edu.spec.sms.service.impl;

import edu.spec.sms.dao.iface.IMentalDao;
import edu.spec.sms.model.mental.Mental;
import edu.spec.sms.service.iface.IMentalService;
import org.springframework.stereotype.Service;

import javax.inject.Inject;
import java.util.List;

/**
 * Created by MadFrog on 2017/6/30.
 */
@Service
public class MentalService implements IMentalService{
    @Inject
    private IMentalDao mentalDao;

    @Override
    public Mental load(Integer mentalId) {
        return mentalDao.load(mentalId);
    }

    @Override
    public List<Mental> listAll() {
        return mentalDao.listAll();
    }

    @Override
    public List<Mental> listMentalByStudent(Integer studentId) {
        return mentalDao.listMentalByStudent(studentId);
    }
}
